import request from '@/utils/request'

// 查询工序信息列表
export const GetListAPI = params => {
  return request({
    url: '/production/operationInformation/list',
    method: 'GET',
    params
  })
}

// 新增工序信息
export const AddDataAPI = data => {
  return request({
    url: '/production/operationInformation/add',
    method: 'POST',
    data
  })
}

// 修改工序信息
export const EditDataAPI = data => {
  return request({
    url: '/production/operationInformation/edit',
    method: 'PUT',
    data
  })
}

// 删除工序信息
export const DelDataAPI = data => {
  return request({
    url: '/production/operationInformation/delete/' + data,
    method: 'DELETE'
  })
}

// 根据工序id查询详情
export const GetViewAPI = data => {
  return request({
    url: '/production/operationInformation/operationById/' + data,
    method: 'GET'
  })
}
